package com.kitty.game.fight.artifact.controller;

import com.kitty.game.chat.message.ReqChat;
import com.kitty.game.fight.artifact.message.ReqViewDdqkAttr;
import com.kitty.game.fight.artifact.message.RespViewDdqkAttr;
import com.kitty.game.role.model.Role;
import com.kitty.mina.annotation.RequestMapping;
import com.kitty.mina.cache.SessionUtils;
import com.kitty.mina.message.MessagePusher;
import org.apache.mina.core.session.IoSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class ViewDdqkController {

    @RequestMapping
    public void viewDdqk(IoSession session, ReqViewDdqkAttr reqViewDdqkAttr) {
        Role role = SessionUtils.getRoleBySession(session);
        RespViewDdqkAttr respViewDdqkAttr =  new RespViewDdqkAttr();
        respViewDdqkAttr.setCon((short)100);
        respViewDdqkAttr.setWiz((short)100);
        respViewDdqkAttr.setStr((short)100);
        respViewDdqkAttr.setDex((short)150);
        respViewDdqkAttr.setMaxRound((byte)2);
        MessagePusher.pushMessage(role, respViewDdqkAttr);
    }
}
